package neu.soft.exception;

/**
 * @author 李博
 * 自定义异常信息枚举类
 */
public enum  AppExceptionCodeMsg {

    INVOID_CODE(10000,"验证码无效"),
    USERNAME_NOT_EXISTS(10001,"用户名不存在"),
    REQUEST_PARAM_EMPTY(10002,"请求参数为空"),
    NSRAD_JSNDSH(10003,"删除失败，因为不存在"),
    YYDZ_JDWGXSB(10004,"更新失败"),
    DZYJ_NGDZ(10005,"添加失败"),
    CHECK_FAIL(10006,"检查失败，不通过"),
    QUERY_FAIL(10007,"查询失败了喵"),
    SEND_FAIL(10008,"信息发送失败"),
    REPEAT_UPDATE(10009,"更新没有改动"),
    REPEAT_ADD(10010,"添加失败，因为已经存在"),
    REPEAT_FAIL(10011,"重复操作"),
    PAY_FAIL(10012,"已付款应付单无需再次支付");

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    AppExceptionCodeMsg(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}

